import 'package:flutter/material.dart';
import '../pages/appSytyle.dart';
class AppEmptyWidget extends StatelessWidget{
  final Function()? onRefresh;
  const AppEmptyWidget({this.onRefresh,Key?key}):super(key:key);

  @override
  Widget build(BuildContext context){
    return Center(
      child: GestureDetector(
        onTap: (){
          onRefresh?.call();
        },
        child: Padding(
          padding: AppStyle.edgeInsetsA12,
          child: Column(
            mainAxisSize:MainAxisSize.min ,
            children:[
              Text(
              "nothing ",
              textAlign: TextAlign.center,
              style: TextStyle(fontSize: 12,color: Colors.grey),
              ),
            ]
          ),
          ),
      ),
    );
  }
}